package com.specialprice.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class ProductPrice implements Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -8188657129432797326L;

	public static final String SIMPLE_NAME = ProductPrice.class.getSimpleName();

	@PrimaryKey
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String key;

	@Persistent
	private Long id;

	@Persistent
	private double price;

	@Persistent
	private Date timestamp;

	public Long getId() {
		return id;
	}

	public String getKey() {
		return key;
	}

	public double getPrice() {
		return price;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
}
